<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%	int row = 0;	%>
<!--
/***********************************************
* 파일명   	: attendManagerListAjax.jsp
* 기  능      	: 휴가관리/휴가 조회
* 최초 작성일 	: 2009/01/21
* @author 	: Yang D
*************************************************
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/htmL1/DTD/xhtml1-transitional.dtd">
<html>
<head></head>
<body>
	<!----------Tbl_info & Table box ------>
    <div id="tbl_info_box02">
		<ul><li class="txt"><b>조회 건수 :</b><s:property value="rowCount"/> 건</li></ul>
	</div>
	<s:hidden name="rowCount" 	id="rowCount" 	/><s:hidden name="msg" 		id="msg" 		/>
	<s:hidden name="chk_in_msg" 	id="chk_in_msg"	/>   <!-- 1/13 -->
	<s:hidden name="chk_out_msg" 	id="chk_out_msg"/>
	<input type="hidden" id="listSize" name="listSize" value='<s:property value="list.size" />' />
	
	<div style="padding-top: 2px;">
			<table class="admininfo_tbl">
			<tr>
			    <!--th>체크</th-->
				<th>그룹</th>
				<th>팀</th>
				<th>성명</th>
				<th>기준일자</th>
				<th>요<br/>일</th>
				<th>출<br/>퇴</th>
				<th>출/퇴<br/>날짜</th>
				<th>출/퇴<br/>시간</th>
				<th>변경전<br /> 유형</th>
				<th>변경후<br /> 유형</th>
				<th>출/퇴근지</th>
				<th>입력자비고</th>
				<th>휴가 부여</th>
				<!-- <th>확인 시간</th> -->
				<th>확인자 비고</th>
				<th>확인자</th>
				<th>변경<br/>여부</th>
				<th>변경<br/>요청</th>
			</tr>
		<s:if test="rowCount != 0">
			<s:iterator value="list"  status="sta">
				<s:if test="size != 0">
				<tr>
				    <!--td><input type="checkbox" id="s_chk" name="s_chk" value="<s:property value="yyyymmdd"/>,<s:property value="in_out_tp"/>,<s:property value="in_out_detail_nm"/>"   onclick="fnc_selct_items()" <s:if test='confirm_yn == "Y"'>disabled="disabled"</s:if><s:if test='close_dt == "Y"' >disabled="disabled"</s:if>/></td-->
					<td><span title="<s:property value="group_nm_tt" />"><s:property value="group_nm" /></span> <s:hidden name="group_no" /></td>
					<td><s:property value="team_nm" /><s:hidden name="team_no" /></td>
					<td><span id="link_emp_nm" style="cursor: pointer;" title="<s:property value="emp_nm" />" onclick="return fnc_in_out_detail(<%=row - 1%>)" ><s:property value="emp_nm" /></span> <s:hidden 	name="aemp_no" /><s:hidden 	name="aemp_nm" value="%{emp_nm}" /></td>
					<td><s:property value="yyyymmdd" /><s:hidden name="yyyymmdd" /></td>
					<td>
						<s:if test='dayname == "토"'>
							<font color="blue"><s:property value="dayname" /></font>
						</s:if>
						<s:elseif test='dayname == "일"'>
							<font color="red"><s:property value="dayname" /></font>
						</s:elseif>
						<s:elseif test='dayname == "공휴일"'>
							<font color="red"><s:property value="dayname" /></font>
						</s:elseif>
						<s:else>
							<s:property value="dayname" />
						</s:else>
					</td>
					<td><s:property value="in_out_tp_nm" /><s:hidden name="in_out_tp" /><s:hidden name="in_out_tp_nm" /></td>
					<td><s:property value="in_out_dt" /></td>
					<td><s:property value="in_out_time" /></td>
					<td><s:hidden name="ori_in_out_detail" value="%{in_out_detail}" />
						<s:property value="in_out_detail_nm"/>
					</td>
					<td><s:hidden name="req_detail" value="%{req_detail}" />
						<s:property value="req_detail"/>
					</td>
					<td><span title="<s:property value="in_out_place_nm"/>"><s:property value='in_out_place_nm' /></span> </td>
					<td><span title="<s:property value="etc_emp"/>"><s:property value='etc_emp_memo' /></span> </td>
					<td>
						<s:if test='in_out_detail == "1008" || in_out_detail == "1005"'>
							 <s:if test='advantage == "3302"' >
								<!--s:select id="advantage" 	name="advantage" listKey="cd" 	listValue="cd_nm" 	list="restDaysVacationList" cssClass="combobox60se" disabled="disabled"/-->
								<!--span title="<s:property value="cd_nm"/>"></span-->
								<input type="text" name="advantage" value="반일휴가" class="input_65se" style="border-color: #ffffff;" readonly="readonly"></input>
							</s:if>
							 <s:elseif test='advantage == "3303"' >
								<!--s:select id="advantage" 	name="advantage" listKey="cd" 	listValue="cd_nm" 	list="restDaysVacationList" cssClass="combobox60se" disabled="disabled"/-->
								<!--span title="<s:property value="cd_nm"/>"></span-->
								<input type="text" name="advantage" value="일일휴가" class="input_65se" style="border-color: #ffffff;" readonly="readonly"></input>
							</s:elseif>
							<s:else>
								<!--s:select id="advantage" 	name="advantage" listKey="cd" 	listValue="cd_nm" 	list="restDaysVacationList" cssClass="combobox60se" disabled="disabled"/-->
								<!--span title="<s:property value="cd_nm"/>"></span-->
								<input type="text" name="advantage" value="미반영" class="input_65se" style="border-color: #ffffff;" readonly="readonly"></input>
							</s:else >
						</s:if>
					</td>

					<!-- <td><span title="<s : property value="update_dt"/>"><s : property value="update_dt.substring(11,update_dt.length())" /></span> </td> -->
					<td><font color="blue"><s:property value="etc_mgr" /></td>
					<td><span title="<s:property value="approv_emp_nm_tt"/>"><s:property value="approv_emp_nm"/></span></td>
					<td><s:property value="in_req_yn_nm"/><s:hidden name="req_yn"/></td>
					<td><input type="button" name="changeAttend" id="changeAttend" value="변경" onclick="return change_attend('<s:property  value="yyyymmdd" />' ,'<s:property value="in_out_tp" />','<s:property  value="in_out_detail" />','<s:property  value="in_out_detail_nm" />')" onclick="fnc_selct_items()"/></td>
				</tr>
				</s:if>
			</s:iterator>
		</s:if>
		<s:elseif test="rowCount == 0 || list.size == 0">
			<tr><td colspan="14">조회된 결과가 없습니다.</td></tr>
		</s:elseif>
		<s:if test="p_count == 0">
		
			<script>
				getList('search');
				return false;
			</script>
		</s:if>
		</table>
	</div>
		<!----------Tbl_info & Table box ------>
		<!-- 페이징 Start -->
		<div class="pagination">
		   <s:property value="pDao.html" escape="false"/>
		</div>
    	<!-- // 페이징 End -->
</body>
</html>